<template>
  <div class='directorys-container'>

    <el-form :inline="true" :model="formInline" class="demo-form-inline">
  <el-form-item label="审批人">
    <el-input v-model="formInline.user" placeholder="审批人"></el-input>
  </el-form-item>
  <el-form-item label="活动区域">
    <el-select v-model="formInline.region" placeholder="活动区域">
      <el-option label="区域一" value="shanghai"></el-option>
      <el-option label="区域二" value="beijing"></el-option>
    </el-select>
  </el-form-item>
  <el-form-item>
    <el-button type="primary" @click="onSubmit">查询</el-button>
  </el-form-item>
</el-form>
    </div>
</template>

<script>
// 目录列表
import { list as getDirectorys } from '@/api/hmmm/directorys.js'
// 学科列表
import { list as getSubjects } from '@/api/hmmm/subjects.js'
export default {
  data () {
    return {
      directors: [], // 存放目录列表
      subjects: [] // 存放学科列表
    }
  },
  async created () {
    // 获取到的目录列表
    this.directors = await getDirectorys()
    // 获取到的学科列表
    this.subjects = await getSubjects()
  }
}
</script>

<style scoped lang='less'>
.directorys-container{

}
</style>
